package vip.xiaonuo.device.modular.service.impl;

import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Service;
import vip.xiaonuo.device.modular.mapper.ReagentClassMapper;
import vip.xiaonuo.device.vo.ReagentClassVO;
import vip.xiaonuo.device.vo.Result;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 墨塵
 * @since 2023/5/17
 */
@Service("deviceReagentClassService")
public class DeviceReagentClassServiceImpl extends DeviceBaseService{

    @Resource
    private ReagentClassMapper reagentClassMapperl;

    @Override
    protected Integer getReqType() {
        return null;
    }

    @Override
    protected Boolean getLogFlag() {
        return false;
    }

    @Override
    protected Result handle(JSONObject param) {
        String casNo = param.getString("casNo");
        List<ReagentClassVO> list = reagentClassMapperl.getList(casNo);
        return Result.ok(list);
    }
}
